  -- Illidan Stormrage --
function spell0_22917(pUnit, Event) --@Dark Barrage,n/a--
pUnit:FullCastSpellOnTarget(40585,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22917', 13000, 1)
end
function spell1_22917(pUnit, Event) --@Draw Soul,n/a--
pUnit:FullCastSpellOnTarget(40904,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22917', 1500, 1)
end
function spell2_22917(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(40598,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22917', 2000, 1)
end
function spell3_22917(pUnit, Event) --@Flame Burst,n/a--
pUnit:FullCastSpellOnTarget(41126,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22917', 821, 1)
end
function spell4_22917(pUnit, Event) --@Flame Crash,n/a--
pUnit:FullCastSpellOnTarget(40832,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22917', 1300, 1)
end
function spell5_22917(pUnit, Event) --@Frenzy,n/a--
pUnit:FullCastSpellOnTarget(40683,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22917', 21300, 1)
end
function spell6_22917(pUnit, Event) --@Parasitic Shadowfiend,n/a--
pUnit:FullCastSpellOnTarget(41917,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22917', 10000, 1)
end
function spell7_22917(pUnit, Event) --@Shadow Blast,n/a--
pUnit:FullCastSpellOnTarget(41078,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22917', 2000, 1)
end
function spell8_22917(pUnit, Event) --@Shadow Prison,n/a--
pUnit:FullCastSpellOnTarget(40647,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22917', 30428, 1)
end
function spell9_22917(pUnit, Event) --@Summon Shadow Demons,n/a--
pUnit:FullCastSpellOnTarget(41117,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22917', 1300, 1)
end
function spell10_22917(pUnit, Event) --@Throw Glaive,n/a--
pUnit:FullCastSpellOnTarget(39635,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22917', 807, 1)
end
function spell11_22917(pUnit, Event) --@Throw Glaive,n/a--
pUnit:FullCastSpellOnTarget(39849,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22917', 500, 1)
end
function Sorts_22917(pUnit, Event)
choix_sorts_22917 = math.random(0, 11)
if choix_sorts_22917 == 0 then
pUnit:RegisterEvent('spell0_22917', 1, 1)
end
if choix_sorts_22917 == 1 then
pUnit:RegisterEvent('spell1_22917', 1, 1)
end
if choix_sorts_22917 == 2 then
pUnit:RegisterEvent('spell2_22917', 1, 1)
end
if choix_sorts_22917 == 3 then
pUnit:RegisterEvent('spell3_22917', 1, 1)
end
if choix_sorts_22917 == 4 then
pUnit:RegisterEvent('spell4_22917', 1, 1)
end
if choix_sorts_22917 == 5 then
pUnit:RegisterEvent('spell5_22917', 1, 1)
end
if choix_sorts_22917 == 6 then
pUnit:RegisterEvent('spell6_22917', 1, 1)
end
if choix_sorts_22917 == 7 then
pUnit:RegisterEvent('spell7_22917', 1, 1)
end
if choix_sorts_22917 == 8 then
pUnit:RegisterEvent('spell8_22917', 1, 1)
end
if choix_sorts_22917 == 9 then
pUnit:RegisterEvent('spell9_22917', 1, 1)
end
if choix_sorts_22917 == 10 then
pUnit:RegisterEvent('spell10_22917', 1, 1)
end
if choix_sorts_22917 == 11 then
pUnit:RegisterEvent('spell11_22917', 1, 1)
end
end
function mob22917_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22917', math.random(1500, 3000), 1)
end
function mob22917_Leave(pUnit, Event)
end
function mob22917_Kill(pUnit, Event)
end
function mob22917_Die(pUnit, Event)
pUnit:RemoveEvents();
end
RegisterUnitEvent(22917, 1, 'mob22917_Action')
RegisterUnitEvent(22917, 2, 'mob22917_Leave')
RegisterUnitEvent(22917, 3, 'mob22917_Kill')
RegisterUnitEvent(22917, 4, 'mob22917_Die')
